package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.TitleSheetMapper;
import com.isdepci.project.gasEmission.domain.TitleSheet;
import com.isdepci.project.gasEmission.service.ITitleSheetService;

/**
 * 标题页Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class TitleSheetServiceImpl implements ITitleSheetService
{
    @Autowired
    private TitleSheetMapper titleSheetMapper;

    /**
     * 查询标题页
     */
    @Override
    public TitleSheet selectTitleSheetById(Long infoId)
    {
        return titleSheetMapper.selectTitleSheetById(infoId);
    }

    /**
     * 查询标题页列表
     */
    @Override
    public List<TitleSheet> selectTitleSheetList(TitleSheet titleSheet)
    {
        return titleSheetMapper.selectTitleSheetList(titleSheet);
    }

    /**
     * 新增标题页
     */
    @Override
    public int insertTitleSheet(TitleSheet titleSheet)
    {
        return titleSheetMapper.insertTitleSheet(titleSheet);
    }

    /**
     * 修改标题页
     */
    @Override
    public int updateTitleSheet(TitleSheet titleSheet)
    {
        return titleSheetMapper.updateTitleSheet(titleSheet);
    }

    /**
     * 批量删除标题页
     */
    @Override
    public int deleteTitleSheetByIds(Long[] infoIds)
    {
        return titleSheetMapper.deleteTitleSheetByIds(infoIds);
    }

    /**
     * 删除标题页信息
     */
    @Override
    public int deleteTitleSheetById(Long infoId)
    {
        return titleSheetMapper.deleteTitleSheetById(infoId);
    }
}
